// SettingThreshold.cpp : implementation file
//

#include "stdafx.h"
#include "PerSim.h"
#include "SettingThreshold.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSettingThreshold dialog


CSettingThreshold::CSettingThreshold(CWnd* pParent /*=NULL*/)
	: CDialog(CSettingThreshold::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSettingThreshold)
	m_threshold = 0;
	m_jiao = 0.0f;
	flag = false;
	//}}AFX_DATA_INIT
}


void CSettingThreshold::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSettingThreshold)
	DDX_Text(pDX, IDC_EDIT_N, m_threshold);
	DDV_MinMaxUInt(pDX, m_threshold, 0, 100000);
	DDX_Text(pDX, IDC_EDIT_jiao, m_jiao);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSettingThreshold, CDialog)
	//{{AFX_MSG_MAP(CSettingThreshold)
	ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSettingThreshold message handlers

void CSettingThreshold::OnCheck1() 
{
	// TODO: Add your control notification handler code here
	
	if(flag)
	{
		flag = false;
	}
	else
	{
		flag = true;	
	}
}